<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>thymeleaf test</title>
</head>
<body>
	<a href="Odselect.html">查询入口</a>
	<form action="/saveOrderDetails" th:action="@{/saveOrderDetails}"
		method="post">

		<p>
			添加订单 <input type="text" name="odListId" /> <input type="text"
				name="odName"> <input type="text" name="odCount"> <input
				type="text" name="odPrice"> <input type="datetime-local"
				name="odTime"> <input type="text" name="odCreatorId">
		</p>
		<p>
			<input type="submit" value="添加" />
		</p>

		<hr />
	</form>
	<form action="/findAllOd" th:action="@{/findAllOd}" method="post">

		<table>
			<tr>
				<td>订单详情编号</td>
				<td>订单编号</td>
				<td>订单名</td>
				<td>订单数量</td>
				<td>订单价格</td>
				<td>下单时间</td>
				<td>创建者</td>

			</tr>
			<tr th:each="orderDetails:${list}">
				<td th:text="${orderDetails.odId}"></td>
				<td th:text="${orderDetails.odListId}"></td>
				<td th:text="${orderDetails.odName}"></td>
				<td th:text="${orderDetails.odCount}"></td>
				<td th:text="${orderDetails.odPrice}"></td>
				<td th:text="${orderDetails.odTime}"></td>
				<td th:text="${orderDetails.odCreatorId}"></td>
				<td><a
					th:href="@{tupdateOrderDetails/(odId=${orderDetails.odId})}">编辑</a>
					&nbsp;&nbsp; <a
					th:href="@{deleteOrderDetails/(odId=${orderDetails.odId})}">删除</a>
				</td>
			</tr>
		</table>
	</form>

</body>
</html>